//
//  BKTabBarView.h
//  itv
//
//  Created by Zhang Yinghui on 10/12/11.
//  Copyright 2011 LavaTech. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol BKTabBarViewDelegate;

@interface BKTabBarView : UIView<UIScrollViewDelegate>

@property (nonatomic, strong) IBOutlet UIScrollView *scrollView;
@property (nonatomic, strong) NSArray *items;
@property (nonatomic, assign) NSInteger selectedIndex;
@property (nonatomic, assign) IBOutlet id<BKTabBarViewDelegate>delegate;
@property (nonatomic, strong) NSDictionary *style;


@end

@protocol BKTabBarViewDelegate<NSObject>
@optional
- (void)tabBar:(BKTabBarView *)tabBar didSelectItem:(NSDictionary *)info;
@end

@protocol BKTabBarGroupViewDelegate;


@interface BKTabBarGroupView : UIView
@property (nonatomic, assign)id<BKTabBarGroupViewDelegate>delegate;
@property (nonatomic, strong) NSArray *items;

@end

@protocol BKTabBarGroupViewDelegate<NSObject>
- (void)tabBar:(BKTabBarGroupView *)groupView didSelectItem:(NSDictionary *)info;
@end
